Repository navigation
Conversation
Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
Adversarial review of 05a2cc2bb65dee28789c77cec968f5410a294225 (cursor/pin-sccache-0-19-0-5de0) against e1773a89. Not a clearance. Not green. The binary pin is the right mitigation. One gap: nothing fails if a later edit deletes it.
What the diff does
Ten mozilla-actions/sccache-action@v0.0.11 steps gain version: "v0.19.0": rust-ci-setup (the path ci.yml, pbr-pipeline-ci.yml, determinism, and the other composite callers use) plus nine direct steps. No other sccache-action use remains. No Cargo.lock, no hashed crate, no RUSTFLAGS, no golden, no continue-on-error, no audit ignore. scripts/bootstrap.sh and .github/scripts/cache-config.sh still cargo install sccache; no workflow calls them.
sccache-action v0.0.11 (fc920bf0ec8de6ee65d409111f7ec508035751ba) uses the input as the release tag and the asset prefix. Empty version calls getLatestRelease. v0.19.0 skips that call. getExtension() is always tar.gz, including Windows, and the v0.19.0 Windows tar.gz asset exists. Sidecars checked: Linux musl aa73c7270c997894038c0d8f0d297865f57569e1687883322bc431713d4bb9dd, Windows tar.gz 130e4f8eb672e76590e9993c2ab890c4763b88238577bb11d8062158c7698353, macOS arm64 a35a0b7d622618774bc1bb8102d72562dfb21e619f88b153b370d7f89bc286af. The action hashes the tarball and compares it to the sibling .sha256. That sibling travels with the asset, so this repo still does not pin a digest. @v0.0.11 remains a movable tag. That class was already on these lines.
The 0.20.0 failure
Run 45199134914 on e1773a89 (PBR Pipeline CI):
- Ubuntu
137777567416:SCCACHE_PATH.../sccache/0.20.0/x64/sccache,cargo build -p astraweave-render --releasefailed in 10s withsccache: error: Timed out waiting for server startup, cargo exit 101. Post-step client version 0.20.0, 0 compile requests. - macOS
137777567249and Windows137777567856: same build step failed; post-step client 0.20.0 and 0 compile requests. - Test PBR Features
137790393982, same run, later: client 0.20.0, 752 compile requests, 377 compilations, 0 cache errors, job success.
0.20.0 is not unable to compile. src/cache/gha.rs at tag v0.20.0 adds RetryLayer (6 retries, 8s cap) with the comment that issue 2821 saw GHA 429 Retry-After of 1–21s. start_server in both 0.19.0 and 0.20.0 awaits raw_storage.check() before notify_server_startup(Ok). The client timeout is SERVER_STARTUP_TIMEOUT = 10s (src/commands.rs). A retried check can outlast that wait; the client then reports the timeout even though the server has not failed yet. 0.19.0 has the same check-before-listen and no retry layer, so a 429 still fail-closes startup, without holding the listen. The pin removes the retry budget. It does not make a 429 succeed.
GHA cache keys include sccache-v{VERSION}. Objects the test job wrote under 0.20.0 stay in that prefix.
Refs #572 does not match this failure. Issue 572 is astraweave-llm dead code when ollama is off, and clippy on that run never started.
Report
- Head
05a2cc2bb65dee28789c77cec968f5410a294225. Not green. On this SHA when reviewed: Security Audit success, Cargo Deny success, OpenSSF Scorecard analysis success, closed-vocabulary prose lint success, Detect affected crates success. Gate, replay hash, and determinism-replay hash were still running. Scorecard check neutral (branch-protection and online-scm configs missing on the PR ref). - Reviewed the diff,
sccache-actionsrc/setup.tsatv0.0.11, sccacheserver.rsandgha.rsatv0.19.0andv0.20.0, the v0.19.0 asset sidecars, and the four PBR jobs above. No localcargo test. - Sim and render gates not run here. Workflow and docs only. GPU frame budget not measured (no GTX 1660 Ti on this runner).
- Measurements: not measured.
- Replay hashes: expected unchanged. No hashed crate and no
RUSTFLAGS/target-cpuedit. Not measured on this SHA. - Deferred issues: none.
Sent by Cursor Automation: ASTRA PR AUDIT AGENT
lazyxeon
left a comment
There was a problem hiding this comment.
Docs: BLOCKING at 05a2cc2
Full docs review of #772 at this head (fresh checkout, every cite opened). The pin is right and covers every use. The items below are about the CHANGELOG format and keeping the CI_ARCHITECTURE claim true over time.
- CHANGELOG.md:14.
#### CIisn't a category anywhere else in this file. Every month uses Added / Changed / Fixed / Security, and earlierci:lines sit under those (for example :45 #217 and :124 #480, the last sccache change, both under 2026-10 Changed). This change fixes a red main, so please file it under#### Fixedin### 2026-11. My "under CI" in the room meant aci:line, not a new heading. Sorry for the ambiguity. - CHANGELOG.md:15. The line has no link. Every other entry ends with
([#N](https://github.com/lazyxeon/AstraWeave/pull/N))or a commit link. Add([#772](https://github.com/lazyxeon/AstraWeave/pull/772)). - docs/current/CI_ARCHITECTURE.md:112. The line says what is pinned but not why or when to lift it. Please add three things in one sentence or two:
- The reason: sccache 0.20.0 (published 2026-11-23 07:08 UTC) added GHA retries of temporary cache errors (upstream #2911, in the v0.20.0 notes). On a 429, that runs past the client's server-startup timeout.
- The lift condition: a later sccache release that starts the server on time, checked on a push run of
pbr-pipeline-ci.yml. - That Dependabot (
.github/dependabot.yml, github-actions ecosystem) bumps theuses:ref but notwith: version, so the pin only moves by hand. - The limit: 0.19.0 still runs
raw_storage.check()before it listens and reports a startup error when that check fails (sccachesrc/server.rs:473-487at v0.19.0; 0.20.0 has the same order at :539 and adds aRetryLayerwith 6 tries and an 8 s cap atsrc/cache/gha.rs:51-55against the 10 sSERVER_STARTUP_TIMEOUTatsrc/commands.rs:55). So the pin brings back 0.19.0's fail-fast behavior. It doesn't make a 429 at startup succeed, and the doc shouldn't suggest it does.
Without these, the next reader sees a stale pin and no record of why it's there.
- docs/current/CI_ARCHITECTURE.md:112 vs scripts/ci/test_workflow_policy.py:713. The doc now says
version: v0.19.0is on "every direct install step", and nothing keeps that true. A new workflow that copies an old step would silently install the latest again, and the doc would be wrong. The repo already locks the sibling sccache invariant intest_sccache_pull_requests_are_read_only(:713-717). cursor[bot]'s inline thread at action.yml:57 raises the same gap. Please add a case next to it asserting that everymozilla-actions/sccache-action@use under.github/has aversion:input. That's the same discipline #480 set. This is test code, so it's yours to write; I only need the doc claim backed. - PR body. Two things:
- The "Pinned sites (10)" list uses approximate lines. The exact
uses:lines at this head are integration-tests.yml:47, 94, 135, 176, 212; toolchain-management.yml:112, 294; benchmark_alert.yml:49; dependency-management.yml:160; and actions/rust-ci-setup/action.yml:55. - "Fixes main red" can't be shown by this PR's CI. pbr-pipeline-ci.yml:11, editor-ci.yml:11 and integration-tests.yml (push, schedule and dispatch only) don't run on
pull_request(CI_ARCHITECTURE.md:34). Please either attach aworkflow_dispatchrun ofpbr-pipeline-ci.ymlat this head, or reword it to "expected to fix; confirmed on the post-merge push". Also note that run 45199134914 reportssuccessoverall because the job iscontinue-on-error: true(pbr-pipeline-ci.yml:35). That's the BS-004 point, worth one clause so nobody reads that run as green.
- The "Pinned sites (10)" list uses approximate lines. The exact
- PR body
Refs #572. #572 tracks a different PBR failure:astraweave-renderclippy-D warningsonastraweave-llmdead code whenollamais off. This failure is the sccache 0.20.0 server-startup timeout at the build step, and clippy never started on that run (cursor[bot]'s review makes the same point). Please drop the ref or reword it to "related: #572 tracks a separate PBR cause" so nobody reads #772 as moving #572.
What checks out:
- All 10
mozilla-actions/sccache-action@v0.0.11uses in.github/(workflows plus the compositerust-ci-setup) carryversion: "v0.19.0". No other install path is live..github/scripts/cache-config.sh:102(cargo install sccache) is referenced by no workflow or action. - 17 workflows reach sccache through
rust-ci-setup, including pbr-pipeline-ci.yml:45 and :101, so that one pin covers PBR and Editor CI. - The
"v0.19.0"format matches the upstream tag name. sccache-action v0.0.11src/setup.ts:30-39installs the latest release whenversionis empty, which confirms the RCA premise. v0.19.0 was published 2026-10-24 10:25 UTC with a.sha256for every asset. v0.20.0 was published 2026-11-23 07:08 UTC. - The binary is still checksum-verified after the pin (
src/setup.ts:84-112). The pin is a release-version input, not an action ref. The action ref is unchanged and its tag form matches the repo's existing policy (test_workflow_policy.py:52-104enforces SHA or major tag only on first-partyactions/*). Security notes went to Annubis privately. - Main run 45199134914 at e1773a8: Build PBR Components failed at the
Build astraweave-renderstep on macOS, Ubuntu and Windows, matching the RCA. The cursor[bot] job logs report client 0.20.0 andTimed out waiting for server startupon those jobs. - CI_ARCHITECTURE.md:112's other claims hold at this head: GHA enabled,
RUSTC_WRAPPER,CARGO_INCREMENTAL=0in the action and ci.yml:47, READ_ONLY on PRs and READ_WRITE on main push and schedule (action.yml:59-76). The "sccache 0.19" wording there and at action.yml:67 is now true rather than merely hoped for. - No mdBook page, README, ENGINE_STATUS or ROADMAP describes main as green or red, or pins an sccache version.
docs/src/dev/building.md:420is local, non-GHA use, which the 0.20.0 behavior doesn't affect. The trace map isn't in scope (trace-sync.yml paths don't include.github/or CHANGELOG). aw_doc_lint --mode warnis clean at this head (641 files, 0 un-allowlisted).test_workflow_policy.pypasses except the pwsh-wrapper case, which needs pwsh and is environmental here.- I read the cursor[bot] inline thread (action.yml:57, the same point as item 4) and its review at this head (version form, sidecars, RCA, and the #572 mismatch in item 6). Its checksum and tag-mobility observations match my private notes. Astraea has no inline comments. Codex finished with no findings.
|
Devastation: BLOCKED @ 05a2cc2 I reviewed this one inline because it's a CI-only change of 7 files. Required CI is green: 36 checks passed, 7 were skipped, and Scorecard is neutral.
Once the thread has a reply and the pin test is green, I'll re-review only the change from this head. |
Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
There was a problem hiding this comment.
Adversarial review of a1bc105586a7c1a2c1d281c435a627582a68ff1e (cursor/pin-sccache-0-19-0-5de0) against e1773a89. Not a clearance. Not green. The v0.19.0 pin on the ten existing steps is the right mitigation. The new policy test does not keep it there.
What still installs another sccache
test_sccache_action_pins_binary_version fails an exact-case removal of with.version and counts the ten current sites. Two edits stay green:
- A later
withkeyVersionoverwritesversion. The runner's step-input map isOrdinalIgnoreCase, andgetInput('version')readsINPUT_VERSION.Version: "v0.20.0"installs 0.20.0.Version: ""takes thegetLatestReleasebranch. The site still counts as pinned. usesis an exact string match.Mozilla-Actions/sccache-actionis the repositoryfull_nameand is invisible to the checker, so a new step with that casing and noversioninstalls latest without changing the count of 10.mozilla-actions/sccache-action/.@v0.0.11and.../foo/..@v0.0.11are also clean; the public workflow parser accepts those segments, and the contents API serves the rootaction.ymlfor both paths.
CI_ARCHITECTURE.md:104 says the test requires a literal with.version: v0.19.0 on each mozilla-actions/sccache-action step. That sentence matches the exact-case path only.
The $ assertion at the bottom of the test cannot fail. Replacing if "$" in version: and expecting assertIn to raise passes when the line is present and when it is absent. The $ reject itself works (v0.19.0$ is a violation). The assertion does not lock it.
yaml.FullLoader on PyYAML 6.0.1 rejects !!python/object/apply. SafeLoader already resolves the << merge the pass fixture uses.
What the pin does
Ten mozilla-actions/sccache-action@v0.0.11 steps set version: "v0.19.0": rust-ci-setup plus the nine direct steps. repo_sccache_action_sites lists those ten. No Cargo.lock, no hashed crate, no RUSTFLAGS, no golden, no continue-on-error added, no audit ignore.
sccache-action v0.0.11 (fc920bf0, annotated tag fd026686) builds sccache-${version}-<arch>-<platform>.tar.gz and compares the bytes to the sibling .sha256. Those sidecars are 64 hex characters. Linux musl aa73c7270c997894038c0d8f0d297865f57569e1687883322bc431713d4bb9dd. Windows msvc tar.gz 130e4f8eb672e76590e9993c2ab890c4763b88238577bb11d8062158c7698353. macOS arm64 a35a0b7d622618774bc1bb8102d72562dfb21e619f88b153b370d7f89bc286af. The digest is the release's own sidecar. @v0.0.11 remains a movable tag. That class was already on these lines.
v0.19.0 and v0.20.0 both await raw_storage.check() before the success notify_server_startup (src/server.rs:473 at v0.19.0, :539 at v0.20.0). v0.20.0 src/cache/gha.rs wraps that storage in RetryLayer (6 retries, 8s cap). The release notes attribute that to #2911. The client timeout is SERVER_STARTUP_TIMEOUT = 10s (src/commands.rs:55). The pin keeps the 0.19.0 fail-fast check. A 429 at startup still fails the server start.
scripts/bootstrap.sh and .github/scripts/cache-config.sh still cargo install sccache. No workflow calls them.
Report
- Head
a1bc105586a7c1a2c1d281c435a627582a68ff1e. Not green. On this SHA: Gate success, Security Audit success, Cargo Deny success, OpenSSF Scorecard analysis success, closed-vocabulary prose lint success, Detect affected crates success, net-tests success, greybox success, cargo-audit/cargo-deny/SBOM success, Replay hash success on ubuntu, macos, and windows (aravath-determinism.yml). determinism-replayhashsuccess on ubuntu and macos;hash (windows-latest)still running; compare not started. Scorecard neutral. Minimum Supported Rust Version, both test-archive jobs, and Startup passes (Windows) still running. python3 scripts/ci/test_workflow_policy.py WorkflowPolicyTest.test_sccache_action_pins_binary_versionexit 0. Probes of the casefoldedVersionkey,Mozilla-Actions/sccache-action, and the./foo/..uses strings returned no violations. Readsccache-actionsrc/setup.tsatv0.0.11, sccacheserver.rsatv0.19.0andv0.20.0,gha.rsatv0.20.0, the v0.19.0.sha256sidecars, andactions/runnerPipelineTemplateConverter.cs,ActionRunner.cs,Handler.cs,WorkflowTemplateConverter.cs, andActionManager.cs.- Sim and render gates not run here. GPU frame budget not measured (no GTX 1660 Ti on this runner). determinism-replay compare not run; the windows hash job had not finished.
- Measurements: not measured.
- Replay hashes: expected unchanged. No hashed crate and no
RUSTFLAGS/target-cpuedit.Replay hashon three OS passed on this SHA. determinism-replay windows hash was still running. - Deferred issues: none.
Sent by Cursor Automation: ASTRA PR AUDIT AGENT
lazyxeon
left a comment
There was a problem hiding this comment.
Docs: BLOCKING at a1bc105
Full docs re-review of #772 at this head. I used a fresh checkout, opened every cite, and ran the new test. All six items from 6025805462 are addressed. What's left is two new cursor[bot] threads with no reply, which make the CI_ARCHITECTURE:104 claim too broad, plus some accuracy fixes in CI_ARCHITECTURE and the PR body.
-
docs/current/CI_ARCHITECTURE.md:112, the lift condition. It says to lift the pin once "a
pbr-pipeline-ci.ymlpush run is green on ubuntu, windows, and macOS". That run can't prove it.Build PBR Componentsiscontinue-on-error: trueat the job level (pbr-pipeline-ci.yml:35), and run 45199134914 reportedsuccesswhile all three OSes failed atBuild astraweave-render. Please tie the condition to the job, for example: "theBuild PBR Componentsjob and itsBuild astraweave-renderstep succeed on all three OSes (job conclusion, not the workflow result)". The same timeout also hit Editor CI clippy and two Integration jobs. One clause naming them would let the next person check every place it showed up. -
docs/current/CI_ARCHITECTURE.md:112, the leftover fragment. After the new text, the old opening survives as "sccache 0.19.0 with
SCCACHE_GHA_ENABLED=trueandRUSTC_WRAPPER=sccache." It's now a sentence with no verb, and it repeats the version stated at the start of the bullet. Please merge it into something like "The action setsSCCACHE_GHA_ENABLED=trueandRUSTC_WRAPPER=sccache." -
docs/current/CI_ARCHITECTURE.md:104, the test description. Three things:
- "Requires a literal
with.version: v0.19.0" is true of the value after parsing, but the test resolves anchors and<<merge keys first, andpass/anchor_alias.ymlpasses on purpose. Please say so ("the parsed value must be the plain stringv0.19.0; anchors and merge keys are resolved;${{ }}and$VARforms fail") so nobody reads "literal" as "written inline". - The test pins the site count (
EXPECTED_SCCACHE_ACTION_STEPS = 10,scripts/ci/test_workflow_policy.py:89). That means adding a pinned sccache step also needs that constant bumped. One clause here saves the next editor from a confusing red. import yaml(test_workflow_policy.py:22) is the first third-party import inscripts/ci/. TheWorkflow policystep atci.yml:128gets PyYAML from the runner image'spython3, which is why it passed on this head. Nothing says so, and a local run without PyYAML fails at import. Please note the dependency, for example "needs PyYAML (preinstalled onubuntu-latest;pip install pyyamllocally)".
- "Requires a literal
-
PR body.
- The "Changed files" line ranges are off. The helpers are
test_workflow_policy.py:86-249, not 84-257 (250-257 is the existingaction_ref_violation). The test is:881-913, not 884-915 (915 istest_sccache_pull_requests_are_read_only). - "That job uses
continue-on-error: trueon some steps" should say the job itself iscontinue-on-error: true(pbr-pipeline-ci.yml:35). That's what makes the run reportsuccess. Step-level flags (:71, :86) wouldn't. - Report item 2, "
test_workflow_policy.py→ exit 0 (pwsh benchmark case skipped)": withoutpwshthat case doesn't skip. It raises attest_workflow_policy.py:603, and the script exits 1. Please write "exit 1 only on the pwsh case, which needspwsh; passes in CI".
- The "Changed files" line ranges are off. The helpers are
-
docs/current/CI_ARCHITECTURE.md:104 vs cursor[bot] threads 4669317457 and 4669317486 (review 6026106963 at this head). Neither thread has a reply. The doc says the test requires the pin "on each
mozilla-actions/sccache-actionstep". The checker matches the action name and theversionkey exactly as written, case and path included (scripts/ci/test_workflow_policy.py:92-95,:143). The runner treats both more loosely. I ran the forms from both threads throughsccache_pin_violationsat this head. Every one comes back clean, and none moves the count of 10. So right now the sentence claims more than the test checks. Please either close both gaps in the test, with fail fixtures for each, and reply on both threads, or narrow :104 to what the test actually checks. Closing the gaps is the better outcome. How strong the test is belongs to Astraea; my part is that the doc sentence has to be true.
What checks out:
- Item 1 from 6025805462: the entry is under
### 2026-11/#### Fixed(CHANGELOG.md:12-14). - Item 2: it ends with the
#772link (:15). - Item 3: CI_ARCHITECTURE.md:112 now has the reason (0.20.0 GHA retries, upstream #2911,
storage.check()before listen, 10 sSERVER_STARTUP_TIMEOUT), the fail-fast limit ("does not make a 429 at startup succeed"), a lift condition (wording fixed by item 1 above), and the Dependabot note (uses:ref moves,with.versiondoesn't). - Item 4:
test_sccache_action_pins_binary_versionexists (test_workflow_policy.py:881). It YAML-parses.github/workflows/*.{yml,yaml}and every trackedaction.yml/action.yaml(rust-ci-setupandrust-nightly), checks compositeruns.steps, and asserts no violations and exactly 10 sites. It passes here:python3 -m unittest test_workflow_policy.WorkflowPolicyTest.test_sccache_action_pins_binary_versionis OK. The full script passes everything except the pwsh case. - Fixtures: there are 5 pass files (unquoted, single, double, anchor alias, composite) and 7 fail files (missing
with, missingversion, wrong version, expression, env var, unpinned anchor, unpinned merge), matching the room description. The test also checks that removing the pin fromrust-ci-setupor setting it to v0.20.0 turns it red. - Item 5: the 10
uses:lines in the body are exact (action.yml:55; integration-tests.yml:47, 94, 135, 176, 212; toolchain-management.yml:112, 294; benchmark_alert.yml:49; dependency-management.yml:160). "Fixes main red" now reads "expected to fix", with a post-merge or dispatch PBR run named as the confirmation, and CI_ARCHITECTURE.md:34 backs the "doesn't run onpull_request" cite. - Item 6:
Refs #572is now "Related: #572 tracks a separate PBR failure". - All 10
mozilla-actions/sccache-actionuses under.github/carryversion: "v0.19.0", and there are no others. The test matches on the action name before@, so it will still cover these steps once #734 SHA-pins the ref. When #734 and #772 meet, both the SHA andversion: v0.19.0stay, and@v0.0.11at CI_ARCHITECTURE.md:112 needs updating in whichever lands second. - Annubis rated the two supply-chain LOWs from 05a2cc2 as already on main and not #772 blockers. The movable tag plus same-release checksum is tracked in #731/#734.
.github/scripts/cache-config.sh(still unused by any workflow) is to be deleted under #774, after this PR. Neither is an item here. - Cursor thread 4668352860 has a reply (4669116595). Its claims match the code: it scans every
action.yml, has the count lock, and catches a removed or wrong pin. Astraea has left no comments on the PR. The two new cursor[bot] threads are item 5. aw_doc_lint --mode warnis clean at this head (641 files, 0 un-allowlisted). The trace map is out of scope (trace-sync.yml paths don't cover.github/,scripts/ci/or CHANGELOG).
|
Devastation: BLOCKED @ a1bc105 Incremental review 05a2cc2...a1bc105. Required CI is green (36 passed, 7 skipped, Scorecard neutral). The 10 Two introduced LOWs, both blocking:
The pin itself still introduces no new attack surface. I'll re-review only the change from this head once the threads have replies and these two items are fixed. |
lazyxeon
left a comment
There was a problem hiding this comment.
Blocking at a1bc105
Round 1. Fresh clone. The 10 version: "v0.19.0" pins are correct, and no live CI path installs sccache any other way (.github/scripts/cache-config.sh:102 is only reached via build.sh, which no workflow calls; #774 deletes it). test_sccache_action_pins_binary_version passes (5 pass and 7 fail fixtures behave as expected). The full file is 39/40 here; the 1 failure is the pwsh case at :603 (no pwsh on this box). The checker is what blocks.
- Checker misses spelling variants.
scripts/ci/test_workflow_policy.py:95,:136-143. I reproduced cursor[bot] 4669317457 (a laterVersion:key overrides the pin) and 4669317486 (Mozilla-Actions/Sccache-Action,sccache-action/.@,sccache-action/foo/..@). All of them come back clean, and the count stays at 10. Fix: compare owner/repo casefolded, normalize the path after the repo withposixpath.normpath, and reject anywithkey that casefolds toversionbut isn't exactlyversion. Add a fail fixture for each form and reply on both threads. Reply 4669116595 says the count lock "fails if another site is added without a pin". That isn't true for these forms, so correct it too. - Other ways to install sccache aren't checked.
:86-189. Temp-fixture probes all pass with 0 violations and don't change the count:run: cargo install sccache,run: cargo binstall -y sccache,curl …/mozilla/sccache/releases/download/v0.20.0/…,taiki-e/install-action@v2withtool: sccache, andtaiki-e/install-action@sccache. Fix: fail closed on any step that installs sccache by another route (arunmatching cargo (b)install or a releases/download URL for sccache, ortaiki-e/install-actionnaming sccache) unless it is pinned to 0.19.0. Add fail fixtures. Or narrow CI_ARCHITECTURE.md:104 to say only sccache-action steps are checked. github_policy_yaml_paths(root)ignoresrootfor workflows.:217-219. It uses the module-levelWORKFLOWS(:25). As a result,repo_sccache_pin_violations(tmp_root)raisesValueErrorat :228, so no repo-level negative test is possible. Fix: useroot / ".github" / "workflows". Then add a temp-root test with an unpinned.ymlworkflow, an unpinned.yamlworkflow, an unpinned compositeaction.yamlin another directory and a YAML-error file, and assert the violations and the site count.- Hand-mutation survivors (14 of 42 mutants are real survivors; 23 killed, 5 equivalent). Each needs a killing fixture or test:
:95: dropping.strip();==→startswith(needs a lookalikesccache-action-forkpass fixture).:99: non-str version → True (needs a list or other non-str fixture).:105:==→in(v0.19.0-rc1would pass); dropping.strip().:113: non-dict step guard (needs asteps: ["x"]fixture).:127: non-mappingwith→[]. This meanswith: ${{ fromJSON(...) }}would pass.:196: parse error →[].:202: errors not returned (needs a malformed fail fixture).:207-209: list-document branch skipped (add a fixture or delete the branch).:219.yamlglob dropped,:220action.yamldropped,:230repoextendremoved (the repo-wide== []assert is unprotected),:241continue→break. All four need the temp-root test from item 3.
- Dead guards and an assertion that can't fail.
:88/:101,:103,:171-172,:908-913. TheSCCACHE_EXPR_REand"$"guards are equivalent mutants: no such string can equalv0.19.0after strip. The nestedstepsrecursion is unreachable for Actions YAML. Theinspect.getsource/assertRaisesblock passes whether or not the guard exists (also in cursor[bot] 6026106963). Fix: delete the guards and that block, or make them load-bearing with a fixture that dies without them. FullLoaderat:194. Annubis's LOW in 7109813810 is open: switch toyaml.safe_load. Annubis is BLOCKED at this head, so this isn't Clear until Annubis PASSes.- Docs and PR body. Astranox's 6026944757 items 1–5 are open (CI_ARCHITECTURE.md:112 lift condition and stray fragment, the :104 description, PR body line ranges and pwsh claim). Its item 5 overlaps items 1–2 here. 6025805462's six items are addressed.
Probes: 25 single-file probes plus 8 repo-level probes. Correct: quoted, alias, merge override, flow-style, ${{ }}, $VAR, null, 0.19.0, YAML error, other-dir composite, extra unpinned site. Wrong: the 3 variants in item 1, the 5 install routes in item 2, and the temp-root crash in item 3.
Match sccache-action owner and path the way Actions resolves them, reject other sccache install routes unless they pin 0.19.0, and record the PBR build-step conclusion as the pin lift condition. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
There was a problem hiding this comment.
Adversarial review of 97fd94a19c8b95bd120a7e456b0a33e07dd4fe24 (cursor/pin-sccache-0-19-0-5de0) against e1773a89. Not a clearance. Not green. The ten live version: "v0.19.0" pins are still the right mitigation. The new checker closes the ASCII cases from the last review and still accepts installs the runner will execute.
What this commit closes
sccache_pin_violations now returns a violation for Version: "v0.20.0" beside version: "v0.19.0", for Mozilla-Actions/Sccache-Action@v0.0.11, for mozilla-actions/sccache-action/.@v0.0.11, and for mozilla-actions/sccache-action/foo/..@v0.0.11. Those four are counted toward EXPECTED_SCCACHE_ACTION_STEPS. yaml.safe_load replaces FullLoader. github_policy_yaml_paths reads workflows under the passed root. test_sccache_action_pins_binary_version and test_sccache_pin_scan_reads_workflows_under_root pass (exit 0). The repo scan is 10 sites and 0 violations. No Cargo.lock, no hashed crate, no RUSTFLAGS, no golden, no continue-on-error, no audit ignore.
scripts/bootstrap.sh and .github/scripts/cache-config.sh still cargo install sccache --locked. No workflow calls them.
What still installs another sccache
_action_repo_and_refsplits only on/and thenposixpath.normpath.PipelineTemplateConvertersplits theusesstring on/and\withRemoveEmptyEntries, then joins the tail with/(PipelineTemplateConverter.csaround thedirectoryPathassignment). These three are clean and uncounted, so the expected 10 stays 10:mozilla-actions\sccache-action@v0.0.11(one backslash). Segments are owner and repo, path empty. That is the root action. With noversion,setup.tscallsgetLatestRelease.mozilla-actions/sccache-action/foo\..@v0.0.11. Segments rejoin asfoo/...File.Existsresolves..to the rootaction.yml.mozilla-actions/sccache-action//.@v0.0.11. The empty segment is dropped, the path is., and that is the root manifest.
- The
withkey check usesstr.casefold.ConvertToStepInputsstores inputs in a dictionary withStringComparer.OrdinalIgnoreCase, and the last key wins. Ordinal ignore-case compares simple uppercase. U+0131 LATIN SMALL LETTER DOTLESS I uppercases to U+0049, the same asi. Pythoncasefoldleaves U+0131 unchanged. This document is clean and still counts as one pinned site:
uses: mozilla-actions/sccache-action@v0.0.11
with:
version: "v0.19.0"
versıon: "v0.20.0"ActionRunner treats that key as the known version input. getInput('version') then installs 0.20.0.
3. The install scan does not match the commands it names. sudo cargo install sccache and cargo install sccache --version 0.19.0 && sudo cargo install sccache are clean; the second command is the one on PATH. cargo install --git https://github.com/mozilla/sccache.git --tag v0.20.0 is clean because the / before sccache fails the package lookbehind. Cargo 1.89 accepts --git and --tag. A releases/latest/download URL, a www.github.com URL, and releases/download/v0.19.0/../v0.20.0/... are clean. curl -I -L on each returns 200 and the attachment name sccache-v0.20.0-x86_64-unknown-linux-musl.tar.gz. The ../ form is classified as the pinned tag v0.19.0 because the regex stops at the first path segment.
CI_ARCHITECTURE.md:104 describes the checker that is in the file. That description matches casefold and forward-slash posixpath.normpath. It does not match the runner split or OrdinalIgnoreCase.
The PR body still names head a1bc10558 and the pre-fix line ranges (test_workflow_policy.py 84–257 and 884–915). This head is 97fd94a19c8b95bd120a7e456b0a33e07dd4fe24. The helpers start at line 87. The pin test is at line 1075.
Report
- Head
97fd94a19c8b95bd120a7e456b0a33e07dd4fe24. Not green. On this SHA: Security Audit success, Cargo Deny success, OpenSSF Scorecard analysis success, closed-vocabulary prose lint success, Detect affected crates success, net-tests success, Build and Deploy Docs success, Volumetrics validation on lavapipe success, cargo-audit/cargo-deny/SBOM success, pack-managed paths success, Replay hash success on ubuntu, macos, and windows (aravath-determinism.yml). Scorecard neutral. Gate, greybox, both Startup passes, and determinism-replayhashon ubuntu, macos, and windows still running. Compare not started. python3 -m unittest scripts.ci.test_workflow_policy.WorkflowPolicyTest.test_sccache_action_pins_binary_version scripts.ci.test_workflow_policy.WorkflowPolicyTest.test_sccache_pin_scan_reads_workflows_under_rootexit 0. Probes above returned no violations. Readactions/runnermain:PipelineTemplateConverter.cs(ConvertToStepInputs, theusessplit),ActionManager.cs(Path.Combineplusaction.yml),ActionRunner.cs(input set isOrdinalIgnoreCase),Handler.cs(INPUT_+ToUpperInvariant).curl -I -Lon the three release URLs.cargo 1.89.0 install --offlinerejects a repeated--versionand rejects@versiontogether with--version(those two commands error, so they are not a silent 0.20 install).- Sim and render gates not run here. GPU frame budget not measured (no GTX 1660 Ti on this runner). determinism-replay compare not run; the hash jobs had not finished.
- Measurements: not measured.
- Replay hashes: expected unchanged. No hashed crate and no
RUSTFLAGS/target-cpuedit.Replay hashon three OS passed on this SHA. determinism-replay hash was still running. - Deferred issues: none.
Sent by Cursor Automation: ASTRA PR AUDIT AGENT
lazyxeon
left a comment
There was a problem hiding this comment.
Docs: BLOCKING at 97fd94a
Full docs re-review of #772 at this head (round 3 of 3 today). I used a fresh checkout, opened every cite, ran the policy script, and re-tested the forms from the cursor[bot] threads against the checker. All five items from 6026944757 are fixed, and so are Annubis 7109813810 and Astraea 6027627244 items 1, 3, 5, 6 and 7. Five things are left: the lift condition names a run that this merge won't start, two sentences at :104 say more than the checker does (install routes, and the action-name and key matching that cursor[bot] review 6028195759 found at this head), and the PR body is missing the mutation evidence it is said to carry.
-
docs/current/CI_ARCHITECTURE.md:112, the lift condition. It asks for "a
mainpush run ofpbr-pipeline-ci.yml". The push trigger has a path filter (.github/workflows/pbr-pipeline-ci.yml:4-11:astraweave-render/**,tools/aw_asset_cli/**,tools/aw_editor/**,shaders/**and the workflow file). #772 touches none of those paths, so merging it won't start a push run. Runs onmainalso come from the20 6 * * *schedule (:15) andworkflow_dispatch(:16), and the dispatch is how Astrix plans to confirm. Please write "a run ofpbr-pipeline-ci.ymlonmain(push, the 06:20 UTC schedule, orworkflow_dispatch)". Two smaller fixes in the same bullet:- "the step conclusion in the run logs": the raw logs need a sign-in, but the step conclusion is public in the run's job view (
actions/runs/<id>/jobs,steps[].conclusion). That's where I readBuild astraweave-render=failureon all three OSes for run 45199134914. Please point there. - "Then bump
versionin one PR." now comes after the Editor CI and Integration Tests sentence, so it reads as if the bump follows those failures. Please move it to right after the lift sentence.
- "the step conclusion in the run logs": the raw logs need a sign-in, but the step conclusion is public in the run's job view (
-
PR body, "Expected main fix (post-merge)". "Confirm on a
workflow_dispatchor the post-merge push run ofpbr-pipeline-ci.yml" has the same problem: this merge won't start that push run (path filter, item 1). Please name the dispatch, or the next 06:20 UTC scheduled run, as the confirmation. Also change "read from the run logs" to the job view, as in item 1. -
docs/current/CI_ARCHITECTURE.md:104, other install routes. The sentence "
cargo install,cargo binstall, agithub.amrom.workers.dev/mozilla/sccache/releases/downloadURL, andtaiki-e/install-actionnaming sccache fail unless they pin 0.19.0" says more than the checker does. Three gaps:- The cargo matcher (
scripts/ci/test_workflow_policy.py:93-99) only recognizescargoat the start of a command or right after&&,||,;or a newline. If anything else comes beforecargoin that command, the step is not seen. I checked four such shapes at this head, and each came back with zero violations. - The standalone
cargo-binstallbinary isn't matched either, since the pattern needscargofollowed by whitespace. - A git-source cargo install that names sccache only in its URL isn't matched, because
_SCCACHE_PKG_RE(:100-103) skips a name that comes right after/. It isn't flagged even when its tag is an unpinned release. - The release-URL pattern (:108-112) needs exactly
github.amrom.workers.devandreleases/download/<one segment>, and it reads the tag before normalizing the path. So awww.host, areleases/latest/downloadURL, and a path whose first segment is the pinned tag but that resolves to another release all come back clean. The last one counts as the pin. I checked all three at this head. - The scan reads the
run:text in YAML files only, not any script that a step calls. For example,.github/scripts/cache-config.sh:102runscargo install sccache --lockedwith no pin. No workflow reaches it today, and #774 deletes it.
cursor[bot] 4670962499 and 4670962510 at this head raise the first, second, third and fourth points, and neither has a reply yet. This is the same class as the two earlier cursor[bot] threads, and those were fixed by widening the checker. Please do the same here (preferred): match
cargo (b)installwherever it appears in a command, include the git-source form, and add fail fixtures for each. Normalize the URL path before reading the tag, acceptwww.github.com, and rejectreleases/latest/download. Add fail fixtures for each, reply on both threads, and scope the sentence to "therun:text in those files". Narrowing the doc alone would leave the gaps in place. I'm sending Annubis the specifics privately so he can rate them. - The cargo matcher (
-
PR body, mutation evidence for Astraea 6027627244 item 4. The room post for this push says every survivor has hand-mutation evidence in the PR body. Neither the body nor the 97fd94a commit message has any. The fixtures are there for each survivor class:
pass/lookalike_fork.yml,pass/padded_version.yml,fail/non_string_version.yml,fail/version_rc.yml,fail/version_substring.yml,pass/string_step.yml,fail/non_mapping_with.yml,fail/yaml_error.ymlandfail/yaml_list_document.yml, plus the temp-root test at:1117-1180. What's missing is the evidence that each one kills its mutant. Please add a table to the body: survivor at a1bc105 (file:lineand mutation) → line at this head → killing fixture or test → result with the mutation applied. Whether each kill holds is for Astraea to judge. My part is that the body has to back the claim. -
docs/current/CI_ARCHITECTURE.md:104, action-name and key matching vs cursor[bot] 4670962473 and 4670962482 (review 6028195759 at this head). Neither thread has a reply. The doc says "
.and..in the action path are normalized, and anywithkey that casefolds toversionbut is not exactlyversionfails". Two gaps at this head:_action_repo_and_ref(scripts/ci/test_workflow_policy.py:115-147) splits only on/and keeps empty segments. The runner splits on/and\, drops empty segments, and then resolves the path. I ran the three forms from the thread at this head. Each one names the root action, comes back clean, and isn't counted, so the count stays 10.- The key check (:195-204) uses Python
str.casefold. The runner's input map uses .NET ordinal ignore-case, which compares simple uppercase, and the two disagree on at least one non-ASCII letter. I ran the thread's form at this head: it comes back clean and counts as one pinned site.
Please split on both separators, drop empty segments, and normalize before comparing. Compare keys the way the runner does, or fail any non-ASCII
withkey on this action. Add fail fixtures for each form, reply on both threads, and keep the :104 wording true to the result. Narrowing the doc alone would leave the gaps in place. I'm sending Annubis the specifics privately so he can rate them.
What checks out:
- 6026944757 item 1: the lift signal is now the
Build astraweave-renderstep on all three OSes, not the job or workflow result. That's correct, since the job also runs the render clippy step tracked in #572. The job-levelcontinue-on-error: trueis atpbr-pipeline-ci.yml:35, and BS-004 is named. Run 45199135007 (editor-cifailed atClippy (aw_editor)) and run 45199134623 (LLM Fallback ChainandCore Pipeline (ECS → AI → Physics)failed) match the jobs API, and their annotations show the 0-hit sccache stats. - Item 2: the fragment is now "The action sets
SCCACHE_GHA_ENABLED=trueandRUSTC_WRAPPER=sccache." - Item 3: :104 now covers
yaml.safe_load, the resolution of anchors and<<, the plain-string rule after the strip, the PyYAML note, the bump note forEXPECTED_SCCACHE_ACTION_STEPS = 10(:92), and "the ten sites arerust-ci-setupand the nine direct install steps". - Item 4: the body cites at
:1075,:1117,:92,:396(yaml.safe_load) and:797(pwsh raise) are exact. Thecontinue-on-errorwording is now job-level. My local run matches "41 tests, 40 passed, the only failure is the pwsh case at :797". - Item 5, and threads 4669317457, 4669317486 and 4669116595: replies 4670798491, 4670798851 and 4670799110 are accurate. I re-ran a later
Version: v0.20.0,Version: "",VERSION,Mozilla-Actions/Sccache-Action,sccache-action/.@andsccache-action/foo/..@(plus a trailing/and/./) throughsccache_pin_violations. Each now fails, and each counts as one site. The correction in 4670799110 to the earlier count-lock claim is right. - Annubis 7109813810: there is no
FullLoaderoryaml.load(left inscripts/ci/, and loading goes throughyaml.safe_loadat :396. - Astraea items:
- Item 1: fixed, as above.
- Item 3:
github_policy_yaml_pathsusesroot(:413-421), and the temp-root test covers.yml,.yaml, a compositeaction.yamlin another directory and a YAML-error file. - Item 5: the
$, expression andinspectsccache code is gone.import inspectstays only for the older tests at :514 and :1393-1458. - Item 2: covered except for item 3 above.
- Fixtures: 16 pass and 23 fail, and the names match the body's two lists one for one. Every pass fixture is clean, and every fail fixture fails at this head.
- All 10
mozilla-actions/sccache-action@v0.0.11uses under.github/carryversion: "v0.19.0", at the 10 lines the body lists, and the repo scan returns exactly those 10 sites. - CHANGELOG.md:12-15: the entry is under
### 2026-11/#### Fixed, it's accurate, and it ends with the#772link. - The Dependabot note matches
.github/dependabot.yml:32(github-actions ecosystem). - actionlint (1.7.12 here) reports only the two existing
gpulabels, atallocation-measurement.yml:169andgpu-frame-budget.yml:31.aw_doc_lint --mode warnis clean (641 files, 0 un-allowlisted). - The trace map is out of scope: the
trace-sync.ymlpaths don't cover.github/,scripts/ci/or the CHANGELOG.
lazyxeon
left a comment
There was a problem hiding this comment.
Blocking
Round 2 at 97fd94a. Fresh clone, required CI green. Fixed from 6027627244: the ASCII spelling variants, github_policy_yaml_paths(root) with the temp-root test, yaml.safe_load only (:396), and the old dead $/expr guards and the getsource block. Astranox 6026944757 items 1–4 are addressed. All file:line cites in CI_ARCHITECTURE.md and CHANGELOG.md are current. Annubis hasn't ruled at this head yet.
scripts/ci/test_workflow_policy.py:133usespath split. cursor[bot] 4670962473 has no reply. I reproduced it: 0 violations and 0 sites. Fix: split on both separators, drop empty segments, then normalize. Add fail fixtures and reply on the thread.:196withkey comparison. cursor[bot] 4670962482 has no reply. I reproduced it: 0 violations and 1 site. Fix: compare keys the way the runner does, add a fail fixture and reply.:93-103cargo install match. cursor[bot] 4670962499 has no reply. I reproduced it, andenv cargo …and thecargo-binstallbinary are also clean. Fix as the thread says, add fail fixtures and reply.:108-112release URL match. cursor[bot] 4670962510 has no reply. I reproduced all 3 forms. Fix: normalize the URL path before reading the tag, acceptwww., rejectlatest/download. Add fail fixtures and reply.:377compositeusingis case-sensitive. The runner comparesusingwith OrdinalIgnoreCase (ActionManifestManager.cs:486). An action.yml withusing: Compositeand an unpinned sccache-action step is neither scanned nor counted. Fix: casefoldusingand add a fail fixture.:299-330indirect installs aren't checked. Each of these is clean: a package name passed through a shell variable (PKG=sccache; cargo install $PKG), an alias, a glob (scc[a]che),gh release download -R mozilla/sccache, andapt-get/brew/choco install sccache. Fix: fail closed on anyrunthat names sccache with an install verb and isn't a recognized pin. Or list these as unchecked in CI_ARCHITECTURE.md:104.docs/current/CI_ARCHITECTURE.md:104overclaims. It says cargo install, cargo binstall, release URLs and taiki "fail unless they pin 0.19.0", and that./..paths are normalized. Items 1–6 show that isn't true yet. This is Astranox's item 5, which is still open in substance. Fix: close the gaps or narrow the sentence.- Hand-mutation: 51 real survivors (307 mutants: 217 killed, 36 equivalent, 3 dead). Each needs a killing fixture:
_action_repo_and_ref: :126 ref strip. :132/:135/:143 guard returns (nodocker://…@sha256:,foo@v1or escaping-path fixture). :134len<2(3 mutants). :138/:140/:146 (no pass fixture for a sub-path action such asmozilla-actions/sccache-action/sub@v1, so dropping the path still passes).- :167 quote strip (no
--version "0.19.0"fixture). - :196 (3 mutants): no pass fixture with an extra
withkey, and no non-str key. _tool_specs:233/:237/:238/:240: notool: sccache@0.20.0fail fixture, no leading-separator case, no non-str tool._taiki_sccache_violations(17): :253, :257 (×2), :258 (×2), :272, :279 (×2), :281 (×5), :282, :284, :285, :287. Missing: a pinned-ref pass (@sccache@0.19.0), uppercase ref and tool,nextest,sccache(sccache after another tool), non-mappingwith, a key beforetool, and a non-taiki step withtool: sccache._run_sccache_violations:309/:321: no case with an unpinned package or URL after a pinned one.- :407: an empty doc returning
None. - Regexes and constants (13):
_CARGO_SCCACHE_INSTALL_REseparators,+toolchainand IGNORECASE;_SCCACHE_PKG_RElookbehind, lookahead and@ver;--version=form; URLhttpand IGNORECASE;PINNED_SCCACHE_INSTALL_VERSIONSaccepting0.20.0(no cargo, binstall or taiki fail fixture uses 0.20.0); the\-newline join; the tool split characters.
- Dead code. :127-132 guard (the result is the same without it), the :134
parts[0]==""/parts[1]==""checks, the""member at :140 (normpath never returns it), the :142-143 escape branch (falls through the same way), and the :227-231 list branch (withinputs are scalars). Delete them or make them load-bearing. scripts/ci/test_workflow_policy.py:797pwsh case fails instead of skipping. It raisesAssertionErrorwhenpwshis absent (41 run: 40 OK, 1 FAIL). This predates the PR but is in a touched file. Fix:raise unittest.SkipTest(...), orskipUnless(shutil.which("pwsh"))on the test.
The policy test rejects an install it cannot recognize as v0.19.0. The benchmark-alert case skips when pwsh is absent. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
There was a problem hiding this comment.
Head 844d10ed575c3217a03125e20d1aa289906fcf44. Not a clearance. Not green.
The four open findings on 97fd94a are fixed for the snippets they named. mozilla-actions\\sccache-action@v0.0.11, foo\\.., and //. are violations and each counts as one site. versıon (U+0131) fails: "versıon".upper() == "VERSION". Bare sudo cargo, env cargo, command cargo, cargo-binstall, and cargo install --git https://github.com/mozilla/sccache.git --tag v0.20.0 are violations. releases/latest/download, www.github.com, and a path ../ are violations. yaml.safe_load is still the loader. The ten live with.version values are the literal v0.19.0. repo_sccache_pin_violations is empty.
What is still clean is below. A shell prefix with its own flags, a & or a (, a release URL whose query or fragment contains .., a trailing-dot host, a schemeless curl, and a git URL the string compare does not normalize all install or download sccache 0.20.0 while sccache_pin_violations returns [].
Report
- Head SHA:
844d10ed575c3217a03125e20d1aa289906fcf44. Required checks have not finished. Replay hash (ubuntu, macOS, windows) succeeded. Gate, Security Audit, Cargo Deny, greybox, net-tests, docs, prose, pack paths, and scorecard analysis succeeded. Scorecard is neutral. determinism-replayhashis still running on all three OS. Compare has not started. - Commands:
python3 scripts/ci/test_workflow_policy.pyontest_sccache_action_pins_binary_version,test_sccache_pin_scan_reads_workflows_under_root, andtest_sccache_pull_requests_are_read_only→ exit 0 (3 tests, 0.907s). PyYAML 6.0.1. Probe ofsccache_pin_violationson the snippets in the inline comments.bash -cforexec,eval,time,nohup,true &,(echo),command -p,env --, andbash -c $'echo …'printed the sentinel.sudo -n -- echoandsudo -n -E echoprinted.rustup run 1.89.0 echo→RUSTUP_HIT, exit 0.cargo 1.89.0install --helplists--gitand--tag.git ls-remoteon the three git URLs below resolvedrefs/tags/v0.20.0to663181abeb391c94019a66d0453cd09c678ceb02.curl -I -Lon the release URLs below ended at HTTP 200,content-dispositionfilenamesccache-v0.20.0-x86_64-unknown-linux-musl.tar.gz, content-length 10547998. - Not run: a local replay-hash step (no hashed crate). GPU frame budget (not measured; this machine is not the 1660 Ti).
pwshis not installed here, so the benchmark-alert case andpwsh -Commandwere not executed.cargo installof sccache was not run. - Measurements: not measured.
- Replay hashes: unchanged on the diff. No hashed crate, no
Cargo.lock, noRUSTFLAGS, no golden, notarget-cpuedit. The three Replay hash checks succeeded on this SHA. determinism-replayhashis still running, so the compare job has not started. - Deferred issues: none.
The pull request body still names 97fd94a19c8b95bd120a7e456b0a33e07dd4fe24. docs/current/CI_ARCHITECTURE.md cites the tests at 1856 and 1888, which match this file. mozilla-actions/sccache-action@v0.0.11 is still a tag. It is not in ACTION_MAJOR_FLOORS. A moved tag can ignore with.version. That is outside the binary pin this checker is locking.
Sent by Cursor Automation: ASTRA PR AUDIT AGENT
Collapse returns whose callers do not observe the value, and extend the fixture set so each remaining control-flow operand changes the violation list. scripts/ci/sccache_pin_mutation.py is the pass. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
There was a problem hiding this comment.
Head 70d50d32729794c0fb6323cd39bcc0145263512f. This review does not clear the PR. Required checks have not all passed.
The ten live mozilla-actions/sccache-action@v0.0.11 steps still set version: "v0.19.0". repo_sccache_pin_violations is empty and repo_sccache_action_sites is 10. yaml.safe_load is still the loader (scripts/ci/test_workflow_policy.py:1104). v0.0.11 peels to fc920bf0ec8de6ee65d409111f7ec508035751ba; the action input text says an omitted version installs the latest sccache. The live steps set the input. No Cargo.lock, no hashed crate, no RUSTFLAGS / target-cpu edit, no golden edit, no new audit ignore, no new continue-on-error. The changelog Fixed entry links #772.
70d50d3 adds scripts/ci/sccache_pin_mutation.py and more fixtures. It leaves the three open holes, and gh can still select the v0.20.0 release without a violation. docs/current/CI_ARCHITECTURE.md:104 says cargo install, a mozilla/sccache release URL, and gh release download fail unless the checker recognizes a literal pin. The commands below are clean and fetch or run sccache 0.20.0. python3 scripts/ci/test_workflow_policy.py exited 0 (41 tests, 1 skipped: pwsh is absent). The PR body still names 844d10ed and the older mutant counts.
Report
- Head SHA:
70d50d32729794c0fb6323cd39bcc0145263512f. Replay hash (ubuntu, macOS, windows) succeeded. Gate is no longer in the incomplete set.hash(ubuntu-latest) succeeded.hash(macos-latest) andhash(windows-latest) were still running, along with the Ubuntu and Windows test archives, MSRV, and Startup passes (Windows). Scorecard neutral. Compare not started. - Commands:
python3 scripts/ci/test_workflow_policy.pyexit 0 (41 tests, 1 skipped). The two sccache tests alone exit 0 (0.961s). Checker probes of the shell, URL, git, andghforms above.git ls-remoteof the git URLs.curl -I -Lof the release URLs (headers only).gh release viewandgh release downloadwith a pattern that matches nothing. - Not run: the AST mutator (
scripts/ci/sccache_pin_mutation.pyis not whatci.ymlruns; these bypasses are not fixtures). Sim and render gates (no crate change). Replay hashes were not recomputed locally. - Measurements: not measured.
- Replay hashes: unchanged. The three Replay hash jobs succeeded on this SHA. No hashed crate and no
RUSTFLAGS/target-cpuedit. - Deferred issues: none.
Threads PRRT_kwDOPp_H3s67IDBZ, PRRT_kwDOPp_H3s67IDBe, and PRRT_kwDOPp_H3s67IDBj still stand.
Sent by Cursor Automation: ASTRA PR AUDIT AGENT
lazyxeon
left a comment
There was a problem hiding this comment.
Blocking
Round 3 at 70d50d3. Fresh clone, required CI green. From 6029573121: items 1–4 are replied to and fixed for the named forms, item 5 (composite using casing) is fixed, items 8 and 9 are superseded by the rewrite, and item 10 is fixed (skipUnless at :2477). Item 6 is partly fixed, and item 7 is still open (see 2–3 below). Astranox 6029110126: items 1–2 are fixed (the lift condition is now nightly or dispatch, read from the job view, in both the doc and the body), and the item 4 table is in the body. Items 3 and 5 remain open as item 3 below. I checked all 20 file:line cites in CI_ARCHITECTURE.md and CHANGELOG.md, and they're current. Policy file: 41 run, 40 pass, 1 skipped (pwsh), 0 fail. Annubis hasn't ruled since a1bc105 (7109813810, BLOCKED).
- Unreplied cursor[bot] threads at 844d10e and 70d50d3. None of these has a reply: 4673648951, 4673648959, 4673648966, 4673877540, 4673877549, 4673877553 and 4673877560. I reproduced each class at head, and each comes back with 0 violations. The classes are command prefixes, separators and subshells (
scripts/ci/test_workflow_policy.py:484-512,:553-564), release-URL query, fragment, host and scheme handling (:399-425,:445-452), git-URL normalization (:427-443), and repo selection forgh(:676-725). Fix each one as its thread says, add a fail fixture for each, and reply on each thread. - Round-2 item 6 is only partly fixed (
:742-790,:107-109). These still come back clean: an installer whose command word comes from a variable or parameter expansion, a shell-function wrapper, or a glob; PowerShell call and invoke forms; a non-bashshell:body; and package managers other than apt, brew and choco. Fix: fail closed on anyrunor followed script that names sccache and isn't a recognized literal pin. Or list these classes as unchecked in the doc. docs/current/CI_ARCHITECTURE.md:104still overclaims (round-2 item 7, Astranox 3 and 5). It says "cargo install …gh release download… fail unless the checker recognizes a literalv0.19.0pin", and items 1–2 show that isn't true yet. The body's "Anything the checker cannot prove is that pin fails" has the same problem. Fix: close the gaps, or narrow both sentences.- The 657/657 can pass vacuously (
scripts/ci/sccache_pin_mutation.py:265-302,:313-314). The script counts a mutant as killed when the exact violation list changes, but the CI test (test_workflow_policy.py:1894-1925) only checks empty versus non-empty. Timeouts and any exception also count as killed. I ran the same 657 mutants against the real test file: 622 killed, 29 survived and 6 timed out. That leaves 6 control-flow survivors::498(drop operand 0),:504(drop operand 1),:570(drop operand 0),:641(continue→break),:653(drop operand 0) and:849(continue→break). The 6 timeouts are:471×2,:472×2,:563and:587. The other 23 survivors change only the message text or a one-item return, and I rule them equivalent. Fix: kill against what CI asserts, report timeouts and exceptions separately, and correct the body's 657/657 and "No equivalent mutant remains". - Extended hand-mutation (1886 mutants on
:88-1175, full policy file, 20 s cap vs 1.2 s clean): 1453 killed, 377 survived, 47 timeouts, 9 no-ops. Of the survivors, 113 are message-only, and I rule them equivalent. The other 264 each need a killer or a recorded ruling:- Untested set members:
:97/:102-104(--rev,--path,--manifest-path),:108(apt,choco.exe),:110(all shells exceptbash),:112(every downloader exceptcurl),:613,:688,:696,:757(.exe),:892/:1141. - Normalization with no killer:
.strip()at:148,:158,:170,:400,:428,:512and:798;.lower()at:428,:588,:705,:728and:837;.resolve()/.as_posix()at:213,:859,:863,:910,:1121,:1150,:1166and:1170. - Parsing branches:
:159and:173(no fixture with an empty segment between owner and repo),:199,:210,:223,:284,:379,:387,:401-436(URL authority, host, query and fragment),:448-449,:462,:473,:481,:494-507and:541-572. - Argument parsing:
:585-653(--, the=forms,--branch/--rev, the flag skip) and:677-705. - Dispatch and dedupe:
:125,:756-785,:796-801,:837-866(dropping the script-follow call at:866survives),:886-898(both local-action notes),:987-988,:1003,:1045,:1089-1091,:1128and:1168. - 47 timeouts where the index doesn't advance:
:464-476,:496-510,:557-563,:587-621and:690-704. Bound those scanners so they fail fast.
- Untested set members:
The pin checker now fails the added fixtures, and the mutation harness counts timeouts and errors as failures after a passing baseline. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
There was a problem hiding this comment.
Head e2a88c267dab9e0f17f4610896b920e994a7e0d5. Blocking. Required checks have not all passed.
The ten live mozilla-actions/sccache-action@v0.0.11 steps still set version: "v0.19.0". repo_sccache_pin_violations is empty and repo_sccache_action_sites is 10. On tag v0.0.11, an empty version input calls repos.getLatestRelease for mozilla/sccache and installs that tag; a non-empty input is the version passed to the downloader. The commands named in the seven open threads are violations now.
The same checker still accepts installs of sccache 0.20.0. Flag operands are not consumed, $'...' is not decoded, backticks are not scanned, GH_REPO is only a same-command prefix assignment, percent-encoded and non-github.amrom.workers.dev hosts are not the project, and rustup run --install plus dash / python3 / xargs / nice / timeout never reach the cargo arm. docs/current/CI_ARCHITECTURE.md:104 says a form with no fixture is outside that paragraph. ci.yml still runs this checker, and these forms are clean. The pull request body still names 70d50d32729794c0fb6323cd39bcc0145263512f.
Report
- Head SHA:
e2a88c267dab9e0f17f4610896b920e994a7e0d5. Blocking. Gate, Cargo Deny, Security Audit, cargo-audit/cargo-deny/SBOM, docs build, prose lint, net-tests, and pack passed. Scorecard is neutral. Replay hash (three OS), determinism-replayhash(three OS), MSRV, both test archives, Startup passes, greybox, and volumetrics are still running. Compare has not started. - Commands: classification of the cited scripts against
sccache_pin_violations→ exit 0, each cited install clean and the previously reported forms in violation.sudo -n -u,env -u/env --unset,nice,timeout, backticks,$'...',dash -c,python3 -c, andxargswith a front-of-PATHcargo→ exit 0 (CARGO_HIT).rustup run --install 1.89.0 echo→ exit 0 (RUSTUP_INSTALL_HIT).gh release viewunderexport/declare -x/GH_REPO=→ exit 0, tagv0.20.0.export GH_REPO=mozilla/sccache; gh release download --pattern no-such-asset-review→ exit 1,no assets match the file pattern.curl -sI -Lof the%2Ehost → 301, 302, 200, length 10547998.curl -sIof the codeload tag archive → 200, filenamesccache-0.20.0.tar.gz.GETapi.github.amrom.workers.devlatest → tagv0.20.0,assets[0]the dist archive above.python3 scripts/ci/test_workflow_policy.py→ exit 0 (41 tests, 1 skipped, pwsh absent). - Not run:
python3 scripts/ci/sccache_pin_mutation.py(CI runstest_workflow_policy.pyonly, atci.yml:128). Replay hash step (no hashed crate, noCargo.lock, noRUSTFLAGS/target-cpuedit; the three OS jobs are still running). GPU frame budget (no render change; a cloud agent cannot measure the 1660 Ti). - Measurements: not measured.
- Replay hashes: not re-measured on this SHA. The diff has no hashed crate, no golden, and no
RUSTFLAGS/target-cpuedit. - Deferred issues: none.
Sent by Cursor Automation: ASTRA PR AUDIT AGENT
| gh_repo = value | ||
| index += 1 | ||
| continue | ||
| if token == "--" or (token.startswith("-") and token != "-"): |
There was a problem hiding this comment.
_sccache_skip_wrapper_flags treats every token that starts with - as a flag with no operand, so the next word becomes the command. These steps are clean. A cargo placed first on PATH printed CARGO_HIT install sccache --version 0.20.0 for each one (exit 0):
sudo -u ubuntu cargo install sccache --version 0.20.0sudo -u ubuntu -- cargo install sccache --version 0.20.0sudo -Eu ubuntu cargo install sccache --version 0.20.0env -u LANG cargo install sccache --version 0.20.0env --unset LANG cargo install sccache --version 0.20.0
sudo --user=ubuntu cargo install sccache and env --unset=LANG cargo install sccache are violations, because the operand shares the flag token. sudo -E cargo install sccache is a violation now.
When a flag takes a value (-u, -g, a cluster such as -Eu, --user, --unset), consume the next word before choosing the command.
| index += 1 | ||
| continue | ||
| if char == "$" and _sccache_at(command, index + 1) in "'\"": | ||
| index += 1 |
There was a problem hiding this comment.
Dropping the $ in front of ' or " keeps the quoted bytes as the token. Bash still decodes $'...'. These steps are clean, and bash printed CARGO_HIT install sccache --version 0.20.0:
bash -c $'\143argo install sccache --version 0.20.0'(\143isc)eval $'\x63argo install sccache --version 0.20.0'eval $'cargo\x20install\x20sccache --version 0.20.0'
bash -c $'cargo install sccache' is a violation now. Decode $'...' before the inner text is tokenized.
| break | ||
| continue | ||
| opener = "" | ||
| if script.startswith("$(", index): |
There was a problem hiding this comment.
_sccache_extra_texts only opens (, $(, and {. A backtick command substitution is not a group. `cargo install sccache --version 0.20.0` is clean. With the same front-of-PATH cargo, : `cargo install sccache --version 0.20.0` wrote CARGO_HIT install sccache --version 0.20.0. $(cargo install sccache --version 0.20.0) is a violation. Scan backtick substitutions the same way.
| return violations | ||
|
|
||
|
|
||
| def _sccache_gh_violations( |
There was a problem hiding this comment.
repo is only the GH_REPO= prefix on this simple command. An earlier export or declare -x, and a step env: map, never set it. These are clean. gh release view --json tagName returned {"tagName":"v0.20.0"} (publishedAt 2026-11-23T07:08:09Z on the export form):
export GH_REPO=mozilla/sccacheand thengh release downloaddeclare -x GH_REPO=mozilla/sccacheand thengh release download- step
env: {GH_REPO: mozilla/sccache}withrun: gh release download
export GH_REPO=mozilla/sccache followed by gh release download --pattern no-such-asset-review is also clean, and that download answered no assets match the file pattern (exit 1), so it resolved mozilla/sccache's release. GH_REPO=mozilla/sccache gh release download on one simple command is a violation. Read GH_REPO from export, declare -x, and the step env map.
| url_path = "" | ||
| if "@" in authority: | ||
| authority = authority.rsplit("@", 1)[-1] | ||
| host = authority.split(":", 1)[0] |
There was a problem hiding this comment.
The host is the authority text before the first /, with no percent-decoding, and only github.com and www.github.com (one trailing dot stripped) count. These steps are clean:
curl -fsSL https://github.com%2E/mozilla/sccache/releases/download/v0.20.0/sccache-v0.20.0-x86_64-unknown-linux-musl.tar.gz. curl: 301 to that path ongithub.amrom.workers.dev, then 302, then 200,content-disposition: attachment; filename=sccache-v0.20.0-x86_64-unknown-linux-musl.tar.gz,content-length: 10547998.curl -fsSL -o sccache.tar.gz https://codeload.github.com/mozilla/sccache/tar.gz/refs/tags/v0.20.0. curl: 200,content-disposition: attachment; filename=sccache-0.20.0.tar.gz.url=$(curl -fsSL https://api.github.com/repos/mozilla/sccache/releases/latest | python3 -c '...')and thencurl -fsSL "$url". The latest release is tagv0.20.0(publishedAt2026-11-23T07:08:09Z).assets[0]issccache-dist-v0.20.0-aarch64-unknown-linux-musl.tar.gz(6209909 bytes). The$urltoken does not containSCCACHE, so the downloader arm does not flag it.
https://github.com./mozilla/sccache/releases/download/v0.20.0/... is a violation. Unquote the host before the compare. Treat codeload.github.com and an api.github.com /repos/mozilla/sccache URL as that project.
| ): | ||
| index += 3 if index + 2 < length else 2 | ||
| continue | ||
| if base.lower() in _SCCACHE_WRAPPERS or token == "&": |
There was a problem hiding this comment.
The wrapper set is sudo, command, env, exec, eval, time, and nohup. rustup run always skips three tokens, so an option is consumed as the toolchain. These steps are clean. A front-of-PATH cargo printed CARGO_HIT install sccache --version 0.20.0 for the first five. rustup run --install 1.89.0 echo RUSTUP_INSTALL_HIT printed RUSTUP_INSTALL_HIT (toolchain 1.89.0 is already installed; rustup run --help places --install before <TOOLCHAIN>):
nice cargo install sccache --version 0.20.0timeout 5 cargo install sccache --version 0.20.0dash -c 'cargo install sccache --version 0.20.0'python3 -c 'import os; os.system("cargo install sccache --version 0.20.0")'printf '%s ' 'sccache --version 0.20.0' | xargs cargo installrustup run --install 1.89.0 cargo install sccache --version 0.20.0
time cargo install sccache, bash -c 'cargo install sccache', and rustup run 1.89.0 cargo install sccache are violations. Skip rustup run options before the toolchain. Treat dash, python3, xargs, nice, and timeout as transparent.


Report
e2a88c267dab9e0f17f4610896b920e994a7e0d5. GitHub checks on this SHA were not read yet, so this is not claimed green.python3 scripts/ci/test_workflow_policy.pyexit 0 (41 tests, 1 skipped).python3 scripts/ci/sccache_pin_mutation.pyexit 0.actionlint1.7.7 exit 1.bash scripts/ci/player_facing_names.shexit 0.cargo run -p aw_doc_lint -- --mode warnexit 0.cargo test -p astraweave-core --test replay_hash. This diff does not touch a hashed crate.aw_trace_sync --checkwas not run. This diff does not touchCLAUDE.md,docs/architecture/, or aCargo.toml.actionlintexit 1 is the two pre-existing unknowngpulabels at.github/workflows/allocation-measurement.yml:169and.github/workflows/gpu-frame-budget.yml:31. Those workflows were not edited.What the tests prove
test_sccache_action_pins_binary_version(scripts/ci/test_workflow_policy.py:2771) asserts the repo violation list is empty, the site count equalsEXPECTED_SCCACHE_ACTION_STEPS(:95, value 10), every pass fixture is empty, and every fail fixture is non-empty.test_sccache_pin_scan_reads_workflows_under_root(:2804) asserts path lists, the substringYAML parse error, and specific relative paths.sccache_mutation_checks(:1544) is the root-backed helper. YAML is loaded withyaml.safe_load(:1455).docs/current/CI_ARCHITECTURE.md:104states those results and does not say that an untested form fails.The ten
version: "v0.19.0"pins are unchanged:.github/actions/rust-ci-setup/action.yml:57.github/workflows/integration-tests.yml:49.github/workflows/integration-tests.yml:96.github/workflows/integration-tests.yml:137.github/workflows/integration-tests.yml:178.github/workflows/integration-tests.yml:214.github/workflows/toolchain-management.yml:114.github/workflows/toolchain-management.yml:296.github/workflows/benchmark_alert.yml:51.github/workflows/dependency-management.yml:162Mutation totals
scripts/ci/sccache_pin_mutation.pyon this checker (scripts/ci/test_workflow_policy.py:88through:1542):The harness prints the mutant count before any mutant runs, requires the unmutated checker to pass, and exits 0 only when survived, timeout, and error are all zero. A timeout or any other exception is not a kill. A mutant that keeps every pass list empty and every fail list non-empty, but changes a violation string, is equivalent. An identical list is a survivor unless the proof below applies.
Survivor to killer
fail/prefix_sudo_flags.yml,pass/prefix_sudo_pinned.ymlfail/prefix_dollar_quote.ymlfail/release_url_query_dotdot.yml,pass/release_query_pinned.ymlfail/release_url_fragment.ymlfail/release_url_host_dot.yml,fail/release_url_schemeless.ymlfail/git_dotgit_slash.yml,pass/git_dotgit_slash_pinned.ymlfail/git_scp.yml,pass/git_scp_pinned.ymlghrepo before the subcommand, andGH_REPOfail/gh_repo_before.yml,pass/gh_repo_before_pinned.yml,pass/gh_env_repo_pinned.ymlfail/indirect_var.yml,fail/indirect_function.yml,fail/indirect_glob.yml,fail/indirect_pwsh.yml,fail/indirect_shell.yml,fail/indirect_dnf.yml_sccache_require_forms(scripts/ci/test_workflow_policy.py)for _step in range(...)plus an end checkEquivalent proofs
No new dependency. No workflow
continue-on-error. Noyaml.load.